home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / _ApplicationControlBarStyle.as < prev    next >
Text File  |  2009-02-12  |  1KB  |  45 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _ApplicationControlBarStyle
  8.    {
  9.        
  10.       
  11.       public function _ApplicationControlBarStyle()
  12.       {
  13.          super();
  14.       }
  15.       
  16.       public static function init(param1:IFlexModuleFactory) : void
  17.       {
  18.          var fbs:IFlexModuleFactory = param1;
  19.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ApplicationControlBar");
  20.          if(!style)
  21.          {
  22.             style = new CSSStyleDeclaration();
  23.             StyleManager.setStyleDeclaration("ApplicationControlBar",style,false);
  24.          }
  25.          if(style.defaultFactory == null)
  26.          {
  27.             style.defaultFactory = function():void
  28.             {
  29.                this.paddingTop = 5;
  30.                this.paddingLeft = 8;
  31.                this.fillAlphas = [0,0];
  32.                this.cornerRadius = 5;
  33.                this.paddingRight = 8;
  34.                this.fillColors = [16777215,16777215];
  35.                this.dropShadowEnabled = true;
  36.                this.docked = false;
  37.                this.paddingBottom = 4;
  38.                this.borderStyle = "applicationControlBar";
  39.                this.shadowDistance = 5;
  40.             };
  41.          }
  42.       }
  43.    }
  44. }
  45.